﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlogLite.Models.Database;

namespace BlogLite.Models
{
    public interface IBlogLiteRepository
    {
        IEnumerable<aspnet_Users> MembershipUsers { get; }
        IEnumerable<Post> Posts { get; }
        IEnumerable<Tag> Tags { get; }

        void AddPost(Post post);
        void AddUser(User user);
        aspnet_Users GetMembershipUserByUsername(string username);
        Post GetPostByPostId(int postId);
        Tag GetTagByTagId(int tagId);
        User GetUserByUsername(string username);
        void Save();
    }
}
